<?php

class ModInterceptor  extends C_Interceptor
{
	public function _begin()
	{
		$modid = $this->_request->get('modid');
		if(empty($modid))
		{
			$error_info = "模块不存在";
			$jumpurl = $this->_response->getUrl('index', 'error','error',array('error_info'=>$error_info));
			$this->_response->RedirectJump($jumpurl);	
		}
		$mod_E = Mods::getById($modid);
		if(empty($mod_E))
		{
			$error_info = "模块不存在";
			$jumpurl = $this->_response->getUrl('index', 'error','error',array('error_info'=>$error_info));
			$this->_response->RedirectJump($jumpurl);	
		}
		$this->_response->mod_E = $mod_E;
		Zend_Registry::set('mod_E',$mod_E);
		
	}
	public function _end()
	{
		
		
	}
}
?>